package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.StrategyTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StrategyEsRepository extends ElasticsearchRepository<StrategyTemplate, Long> {

    // 通过主题id, 查询攻略集合, 通过攻略集合, 晒出目的地id
    List<StrategyTemplate> findByThemeId(Long themeId);

    // 通过名字查询列表
    List<StrategyTemplate> findByDestName(String name);
}
